package com.xianzhiOA.service.impl;

import com.xianzhiOA.bean.XzEmp;
import com.xianzhiOA.dao.XzEmpMapper;
import com.xianzhiOA.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by admin on 2017/4/11.
 */
@Service("loginService")
public class LoginServiceImpl implements LoginService {

    @Autowired
    private XzEmpMapper xzEmpMapper;

    @Override
    public XzEmp login(String username) {
        return xzEmpMapper.selByAccount(username);
    }
}
